﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace Timesheet
{
    class GeneralUtility
    {
        public const string TEST_FILE_1 = "test1.html";
        public const string TEST_FILE_2 = "test2.html";
        public const string TEST_FILE_3 = "test3.html";
        public const string TEST_FILE_4 = "test4.html";

        /// <summary>
        /// Write the string to the file.
        /// Will clear original context.
        /// </summary>
        /// <param name="str"></param>
        /// <param name="fileName"></param>
        public static void writeStringToFile(string str, string fileName)
        {
            StreamWriter sw = new StreamWriter(fileName, false);
            sw.Write(str);
            sw.Close();
        }
    }
}
